import * as types from '@/redux/types'

export default function createReducer(prevState = '', { type, data } = {}) {
    switch (type) {
        case types.SET_SEARCH_KEYWORD:
            return data
        default:
            return prevState
    }
}